package com.fengye.algorithms.huawei;

import java.util.Scanner;

/**
 * @Author fengye
 * @Date 2023/4/7 10:16
 **/
public class StrSplitMain {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        String str = in.nextLine();
        if (str == null || str.equals("")) {
            System.out.println("00000000");
            return;
        }

        int t = str.length() % 8;
        int i = 0;
        StringBuilder builder = new StringBuilder(str);
        while (t > 0 && i < (8 - t)) {
            builder.append("0");
            i++;
        }
        str = builder.toString();
        int start = 0, end = 8;
        while (end <= str.length()) {
            String sub = str.substring(start, end);
            System.out.println(sub);
            start = end;
            end = start + 8;
        }

    }
}
